﻿<%@ Page Language="C#" MasterPageFile="~/Admin/SiteAdmin.Master" AutoEventWireup="true" CodeBehind="CongNgheThietBi.aspx.cs" Inherits="DM.Web.Admin.CongNgheThietBi" Title="Công ty cổ phần Đường Man - Duong Malt JSC" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="maTin" runat="server" Visible="false" EnableViewState="true" />
    <h1>Công nghệ thiết bị</h1><br /><br />
    <table  width="100%">
        <tr>
            <td style="width:30%">
                <b>Ngôn ngữ</b>
            </td>
            <td style="width:70%">
                <asp:DropDownList ID="dlNgonNgu" runat="server" AutoPostBack="true" Width = "150px" OnSelectedIndexChanged="dlNgonNgu_SelectedIndexChanged">
                    <asp:ListItem Text="Tiếng Việt" Value="1"></asp:ListItem>
                    <asp:ListItem Text="Tiếng Anh" Value="2"></asp:ListItem>
                </asp:DropDownList>
            </td>    
        </tr>
        <tr>
            <td style="width:30%; height: 25px;"><b>Tiêu đề</b>
            <asp:RequiredFieldValidator ID="RequiredFieldValidatorTieuDe" runat="server" ControlToValidate="txtTieuDe" ErrorMessage=" (Yêu cầu nhập)"></asp:RequiredFieldValidator></td>
            <td style="width:70%; height: 25px;"><asp:TextBox ID="txtTieuDe" runat="server" Width="100%"></asp:TextBox></td>
        </tr>  
        <tr>
            <td style="width:20%"><b>Upload ảnh đại diện</b></td>
            <td style="width:70%">
                <asp:FileUpload ID="FileUpload1" Width="60%" runat="server" />
                <asp:Button ID="ButtonUpload" runat="server" Width="100px" Text="Upload" OnClick="ButtonUpload_Click" />
                <asp:Label ID="LabelUploadErr" runat="server" Visible="false" Width="90%"></asp:Label></td>
        </tr>
        <tr>
            <td style="width:20%"></td>
            <td colspan="2">
                <asp:Panel ID="PanelAnhDaiDien" runat="server">
                    <asp:DataList ID="DataListAnhDaiDien" runat="server" RepeatColumns="5"  RepeatDirection="Horizontal" OnDeleteCommand="DataListAnhDaiDien_DeleteCommand" >
                        <ItemTemplate>
                            <table width="120px">
                                <tr>
                                    <td>
                                        <asp:Image ID="Image1" runat="server" Height="80px" ImageUrl='<%# Bind("link") %>'
                                            Width="120px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="padding-left:10px">
                                        <asp:Button ID="btnDeletePicture" Width="100px" runat="server" Text="Xóa ảnh" CommandName="Delete"
                                            CssClass="Button" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                </asp:Panel>
            </td>
        </tr>  
        <tr>
            <td colspan="2"><b>Mô tả (Tóm tắt)</b>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorMoTa" runat="server" ControlToValidate="txtMoTa" ErrorMessage=" (Yêu cầu nhập)"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2"><asp:TextBox ID="txtMoTa" runat="server" TextMode="MultiLine" Height="100px" Width="100%"></asp:TextBox></td>
        </tr>      
        <tr>
            <td><b>Nội dung hiển thị</b></td>
            <td></td>
        </tr>
        <tr>
            <td colspan="2">
                <div style="border:1px solid #C0D7DD;">
                <FCKeditorV2:FCKeditor ID="FCKeditorNoiDung" runat ="server" Width="100%" BasePath="~/fck/" Height="600px">
                </FCKeditorV2:FCKeditor>
                </div>
            </td>
        </tr>           
        <tr>
            <td>
                <asp:Button ID="btnSave" runat="server" Width="100px" OnClick="btnSaveClick" Text="Lưu" CausesValidation="true" />
                <asp:Button ID="btnCancel" runat="server" Width="100px" OnClick="btnCancelClick" Text="Thoát" CausesValidation="false" /></td>
        </tr>
    </table>
</asp:Content>
